#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@create Time:2018-11-21

@author:Brook
"""

from django.contrib import admin
from django.urls import path

from .import views
from .import task_views


urlpatterns = [
    path("", views.list_spiders, name="spiders"),
    path("list", views.list_spiders, name="spiders"),
    path("del", views.del_spider, name="del_spider"),
    path("add", views.add_spider, name="add_spider"),
    path("<int:sid>", views.spider_detail, name="spider_detail"),
    path("update/<int:sid>", views.update_spider, name="update_spider"),

    path("spider/<int:sid>/add_task", views.add_task, name="add_task"),
    path("task/<tid>/update", views.update_task, name="update_task"),
    path("task/delete", views.del_task, name="del_task"),
   
    path("task", task_views.task_list, name="tasks"),

    path("joblog", views.list_joblog, name="list_joblog"),

    path("test",views.test),
]

